package com.peng.controller;

import com.peng.dao.pojo.SysUser;
import com.peng.utils.UserThreadLocal;
import com.peng.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @GetMapping
    public Result test(){
        SysUser user = UserThreadLocal.get();
        System.out.println(user);
        return Result.success(null);
    }
}
